﻿<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="/">System</a>
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <i class="icon-edit"></i>
        <a href="#">Applications</a>
    </li>
</ul>
<!--/span-->

<div class="row-fluid">
    <div class="box span12">
        <div class="box-header" data-original-title>
            <h2><i class="halflings-icon user"></i><span class="break"></span>Applications</h2>
            <div class="box-icon">
                <a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a>
            </div>
        </div>
        <div class="box-content">
            <table class="table table-striped bootstrap-datatable datatable" id="dataTables-1">
                <thead>
                    <tr>
                        <th class="text-left">Key</th>
                        <th class="text-left all">Application Name</th>
                        <th class="text-left">Create Date</th>
                        <th class="text-left">Update Date</th>
                        <th class="text-left">Note</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>
    </div>
    <!--/span-->
</div>
<!--/row-->
@section scripts
{
    <script>
        $(document).ready(function () {
            var table = $('#dataTables-1').dataTable({
                "bServerSide": true,
                "bProcessing": true,
                "responsive": true,
                oLanguage: {
                    sProcessing: "<img src='http://www.arabianbusiness.com/skins/ab.main/gfx/loading_spinner.gif'/>"
                },
                "bAutoWidth": false,
                "aLengthMenu": [10, 30, 50, 100],
                "pageLength": 30,
                "sAjaxSource": '@Url.Action("ApplicationData")',
                "fnServerData": function (sSource, aoData, fnCallback) {
                    $.ajax({
                        "dataType": 'json',
                        "type": "POST",
                        "url": sSource,
                        "data": aoData,
                        "success": fnCallback
                    });
                },
                "sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'dataTables_wrapper'ip>>",
                "sPaginationType": "bootstrap",//"full_numbers",
                "aoColumns": [
                            { "sName": "ApplicationKey", "bSortable": false },
                            { "sName": "Name", "bSortable": false },
                            { "sName": "CreatedUTC", "bSortable": false },
                            { "sName": "ModifiedUTCDate", "bSortable": false },
                            { "sName": "Description", "bSortable": false }]
            });
        });
    </script>
}